home *** CD-ROM | disk | FTP | other *** search
/ Champak 148 / (Vol 148) Feb 07 2012.iso / Games / pet_1328.swf / scripts / DefineButton2_161 / BUTTONCONDACTION on(keyPress Right).as < prev    next >
Text File  |  2012-02-07  |  333b  |  16 lines

  1. on(keyPress "<Right>"){
  2.    if(getProperty(dog, _X) >= 640)
  3.    {
  4.       setProperty("dog", _X, 0);
  5.    }
  6.    setProperty("dog", _rotation, 90);
  7.    if(!(getProperty(dog, _X) == 0 && getProperty(dog, _Y) >= 250))
  8.    {
  9.       setProperty("dog", _X, getProperty(dog, _X) + 10);
  10.    }
  11.    with(dog)
  12.    {
  13.       nextFrame();
  14.    }
  15. }
  16.